package day4;

import java.io.InputStream;

import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.rdf.model.ModelFactory;
import com.hp.hpl.jena.util.FileManager;

public class NTrpleLoader {
	String filename = "D:\\Again\\silk\\silk2\\source.nt";
	public Model model = ModelFactory.createDefaultModel();
	void load() {
		InputStream inputStream = FileManager.get().open(filename);
		if(inputStream==null) {
			System.err.println("File Not Found!!!");
		} else {
			model.read(inputStream, " ");
		}
	}
	
	public static void main(String[] args) {
		NTrpleLoader n = new NTrpleLoader();
		n.load();
		System.err.println(n.model.write(System.out, "N-TRIPLE"));
	}
}
